@extends('home/layout/index')

@section('content')
<div class="user-info">
		<!--标题 -->
		<div class="am-cf am-padding">
			<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg"><a href="/home/user/center">个人中心</a></strong> / <small>您的基本信息:</small></div>
		</div>
		<hr/>

		<!--头像 -->
		<div class="user-infoPic">
			<form action="/home/user/editpic">
				<div class="filePic">
				<img class="am-circle am-img-thumbnail" src="/uploads/images/userpic/{{ $data['userpic'] }}"/>	
				</div>
			</form>
			<p class="am-form-help">头像</p>
			<div class="info-m">
				
				<div class="u-level">
					<span class="rank r2">
			             <s class="vip1"></s><a class="classes" href="#">
			             欢迎你尊敬的:
			             </a>
						@if( $data['level']  ==1 ) 
			             <a href="#" style="color:red">普通会员</a>
			             @elseif( $data['level']  == 2)
			             <a href="#" style="color:red">vip会员</a>
			             @endif
		            </span>
				</div>
				<div class="u-safety">
					<a href="#">
					 账户余额
					<span class="u-profile"><i class="bc_ee0000" style="width: 60px;color:red" width="0">{{ $data['money'] }} </i>元</span>
					</a><br>
					<a href="#">
					 积分
					<span class="u-profile"><i class="bc_ee0000" style="width: 60px;color:red" width="0">{{ $data['scores'] }} </i>分</span>
					</a>
				</div>
			</div>
		</div>

		 <!--个人信息 -->
		<div class="info-main">
			<form class="am-form am-form-horizontal" action="/home/user/update" method="post">
			<input type="hidden" name="id" value="{{ session('id')}}">
				{{ csrf_field() }}
				<div class="am-form-group" style="line-height:25px">
					<label for="user-name2" class="am-form-label">用户名:</label>
					<label for="user-name2" class="am-form-label">{{ $data['username']}}</label>
					
				</div>
				<div class="am-form-group" style="line-height:25px">
					<label for="user-name2" class="am-form-label">昵称:</label>
					<label for="user-name2" class="am-form-label">{{ $data['nickname']}}</label>
				</div>
				<div class="am-form-group" style="line-height:25px">
					<label for="user-email" class="am-form-label">登录邮箱</label>
					<label for="user-email" class="am-form-label"style="width:200px">{{ substr_replace($data['email'],'****',3,-10)}}</label>
					<label for="user-email" class="am-form-label"><a href="" style="color:#0066FF">修改邮箱</a></label>
				</div>
				<div class="am-form-group" style="line-height:25px">
					<label for="user-phone" class="am-form-label">绑定手机</label>
					<label for="user-phone" class="am-form-label" style="width:200px">{{ substr_replace($data['tel'],'****',3,-4)}}</label>
					<label for="user-phone" class="am-form-label"><a href="#" style="color:#0066FF;">修改手机</a></label>
				</div>
			</form>
		</div>

		
	
	</div>
		 	


@endsection